package cn.sxt.service.impl;

import cn.xbtop.domain.UserAddress;
import cn.xbtop.service.UserService;
import com.alibaba.dubbo.config.annotation.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/5/7 20:56
 */
@Service
//@Service
public class UserServiceImpl implements UserService {

    public static List<UserAddress> list = new ArrayList<>();

    static {
        list.add(new UserAddress(20881,"提供者","port"));
        list.add(new UserAddress(1, "新乡", "xy"));
        list.add(new UserAddress(2, "郑州", "zz"));
        list.add(new UserAddress(2, "平顶山", "pds"));
    }

    @Override
    public List<UserAddress> queryAllAddress(String userId) {
        System.out.println(userId);
        return list;
    }
}
